﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using DotSpatial.Data;
//using DotSpatial.Projections;
using DotSpatial.Map;
using DotSpatial.Geometries;

using System.Drawing;

namespace HuanGis
{

    /// <summary>
    /// 这个类不应该不直接实例化，应该实例化它的子类
    /// </summary>
    public class FEditableLayer : FShapeLayer

    {

        public FEditableLayer(string id):base(id)
        {


            //更新对应的属性关联

            this.m_bShapeEditable  = true;


            this.m_bMovable = true;
            this.BSelectable = true;

            this.m_bTextEditalbe = true;

            
        }


 




        protected Dictionary<string, FShape> m_Shapes = new Dictionary<string, FShape>();


        public override void ClearShapes()
        {
            base.ClearShapes();

            this.m_Shapes.Clear();

        }

        public override  void AddShape(FShape shp)
        {
            this.m_Shapes.Add(shp.Id ,shp);

          

        }

        public override void AddShapeRane(List<FShape> shps)
        {
            for (int i = 0; i < shps.Count  ; i++)
			{

                this.m_Shapes.Add (shps[i].Id ,shps [i]);
			 
			}
           
           
        }


        protected override void BuildLayer()
        {
            base.BuildLayer();
        }

        protected override void BuildProp()
        {
            base.BuildProp();

        }


        
    }
}
